package com.songcha.library_business.proxy.userinfo

import com.alibaba.android.arouter.launcher.ARouter
import com.google.gson.Gson
import com.songcha.library_business.bean.user.UserInfoBean
import com.songcha.library_business.util.BusinessJumpUtil
import com.songcha.library_common.LibraryCommon
import com.songcha.library_common.helper.SharedPreferenceHelper
import com.songcha.library_common.util.TimeUtil
import com.songcha.library_common.util.ToastUtil

class UserInfoManager {
    companion object{
        const val LOGIN_FILE_NAME = "login"
        var loginToken = ""

        @JvmStatic
        fun init(){
            loginToken = SharedPreferenceHelper.getString(LOGIN_FILE_NAME,"login_token")
        }

        @JvmStatic
        fun saveLogin(token:String){
            loginToken = token
            SharedPreferenceHelper.setString(LOGIN_FILE_NAME,"login_token",token)
        }

        @JvmStatic
        fun clearLogin(){
            loginToken = ""
            SharedPreferenceHelper.setString(LOGIN_FILE_NAME,"login_token","")
        }

    }
}